/*************************************************************************
> File Name: 004.c
> Author: icebear
> Mail: 3322366195@qq.com
> Created Time: 2023-07-19 13:29:46
> Description: 输入某年某月某日，判断这一天是这一年的第几天？
************************************************************************/
#include <stdio.h>
int main(int argc, char const *argv[])
{
    int year, month, date, day;
    while (1)
    {
        printf("input the year number\n");
        scanf("%d", &year);
        printf("input the month number\n");
        scanf("%d", &month);
        printf("input the day number\n");
        scanf("%d", &date);
        day = (month - 1) / 2 * 61;

        if (month > 2)
        {
            day -= 2;
            // 判断闰年 能整除4 但不能整除100 但可以整除400
            // if (year % 4 == 0)
            // {
            //     if (year % 100 != 0)
            //     {
            //         day++;
            //         break;
            //     }
            //     if (year % 400 == 0)
            //     {
            //         day++;
            //     }
            // }
            if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0)
            {
                /* code */
            }
        }
        if (month < 8)
        {
            if (month % 2 == 0)
            {
                day += 31;
            }
            day += date;
        }
        else
        {
            if (month % 2 == 1)
            {
                day += 31;
            }
            day += date;
        }
        printf("%d-%d-%d transform is %dth day\n", year, month, date, day);
        /* code */
    }
    return 0;
}
